import {interaction} from "@/package/tools/interaction";

export default {
  name: '数值文本',
  icon: '/img/text/number.png',
  type: '数字',
  cptKey: 'widget-num',
  width: 200,
  height: 80,
  dynamic: true,
  options: {
    interaction,
    cptDataForm: {
      dataText: '{"value":"275.39"}',
      dataSource: 1,
      pollTime: 0,
      sql: '',
      dataSourceId: '',
      dataSetId: '', // 数据集id
      dateSetName: '' // 数据集名称
    },
    attribute: {
      title: '总人数',
      color: '#32B0FF',
      fontSize: 22,
      fontWeight: 'normal',
      prefix: '￥', // 前缀
      prefixColor: '#32b0ff',
      prefixSize: 22,
      suffix: '元', // 后缀
      suffixColor: '#32B0FF',
      suffixSize: 22,
      precision: 2, // 精度
      speed: 3,
      isShadow: false,
      shadowOffsetX: 1,
      shadowOffsetY: 0,
      shadowBlur: 10,
      shadowColor: '#0ad8e7'
    }
  }
}
